<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box {
        width: 200px;
        height: 200px;
        background-color: pink;
        margin: 0 auto;
    }

    .box1 {
        width: 200px;
        height: 200px;
        position: relative;
        left: 50%;
        background-color: red;
        margin-left: -100px;

    }

    .fb {
        width: 100%;
        height: 200px;
        text-align: center;
    }

    .box2 {
        width: 200px;
        height: 200px;
        background-color: blue;
        position: absolute;
        display: inline-block;
        margin-left: -100px;

    }
</style>

<body>


    <div class="box">1</div>
    <div class="box1">2</div>
    <div class="fb">
        <div class="box2">3</div>

    </div>

</body>

</html>